if __name__ == '__main__':
    str = input("")
    dict= {}
    for i in range(len(str)):
        if str[i] in dict:
            dict[str[i]] += 1
        else:
            dict[str[i]] = 1

    for i in dict.keys():
        if dict[i] > 1:
            print("{}:{} times".format(i, dict[i]), end = ', ')
        else:
            print("{}:1 time".format(i), end = ', ')
